<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<input type="text" id="text"><br>
<p>如果你点击“隐藏” 按钮，我将会消失。</p >
<button class="hide">隐藏</button>
<button class="show">显示</button>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
</body>
<script>
  $(document).ready(function(){
    $(".hide").click(function(){
      $("p").hide();
    });
    $(".show").click(function(){
      $("p").show();
    });
  });
</script>
</html>
